package main

import (
	"fmt"
)

func average(ftemp []float64) float64 {

	var avr, sum float64

	sum = 0
	for _, v := range ftemp {
		sum += v
	}
	avr = sum / float64(len(ftemp))

	return avr

}

func main() {
	slit := make([]float64, 10)
	slit[0] = 5
	fmt.Println(len(slit))
	fmt.Println(average(slit))
}
